using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FinlogiK.FxCop.Statistics.Windows
{
	internal partial class TodoPrefixesForm : ListForm
	{
		#region Constructors

		internal TodoPrefixesForm()
		{
			InitializeComponent();

			this.Grid.AllowUserToDeleteRows = true;

			this.todoPrefixesTableAdapter.Fill(this.todoPrefixDataSet.TodoPrefixes);
			this.SetGridBindingSource(this.todoPrefixDataSet.TodoPrefixes);
		}

		#endregion

		#region Methods

		protected override DataGridViewColumn[] GetGridColumns()
		{
			DataGridViewColumn[] columns = new DataGridViewColumn[1];

			columns[0] = this.MakeTextBoxColumn("Prefix", "Prefix", true);

			return columns;
		}

		protected override void SaveData()
		{
			this.todoPrefixesTableAdapter.Update(this.todoPrefixDataSet.TodoPrefixes);
		}

		#endregion
	}
}

